<?php

namespace Controller\Ajax;

class Options extends Base {

	public function del() {
		$id = $this->postInt('id');
		if (!$id) {
			$this->responseError('参数错误');
		}
		\Data\Options::instance()
			->where(array('Id' => $id))
			->del();
		$this->response(true);
	}
}